import random

def generate_matchsticks(n, min_length=1, max_length=10):
    matchsticks = [random.randint(min_length, max_length) for _ in range(n)]
    return matchsticks

if __name__ == "__main__":
    n = 10  # 火柴棍的数量
    matchsticks = generate_matchsticks(n)
    print("生成的火柴棍长度:", matchsticks)